/* 字体样式 */
@import "./assets/css/iconfont.css";

/* 定义全局样式 */

/* 在 main.js 入库文件引入 */
body {
  margin: 0;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-corner {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-thumb {
  background: purple;
  background-image:
    linear-gradient(
      45deg,
      rgb(255 255 255 / 20%) 25%,
      transparent 25%,
      transparent 50%,
      rgb(255 255 255 / 20%) 50%,
      rgb(255 255 255 / 20%) 75%,
      transparent 75%,
      transparent
    );
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: purple;
}

/* flex */
.flex-row {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.flex-3 {
  flex: 3;
}

.flex-4 {
  flex: 4;
}

.flex-5 {
  flex: 5;
}

.ml-10 {
  margin-left: 10px;
}

.mr-10 {
  margin-right: 10px;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

/* button 样式 为了好看点 */
button {
  min-width: 40px;
  padding: 10px;
  color: white;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  border-width: 0;
  opacity: 0.9;
}

button:hover {
  opacity: 1;
}

button i {
  font-size: 16px !important;
}

.circle,
.circle-4 {
  border-radius: 4px !important;
}

.circle-10 {
  border-radius: 10px !important;
}

/* 按钮颜色 */
.primary {
  background: purple;
}

.info {
  color: #000;
  background: none;
}

.info:hover {
  color: purple;
  border-color: purple;
}

.secondary {
  background: #1976d2;
}

.warning {
  background: #d32f2f;
}

/* modal */
.modal {
  padding: 0;
  margin: 0;
}

.modal .mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  height: 100%;
  background-color: #00000073;
}

.modal .wrap {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  background-color: #00000073;
  outline: 0;
}

.modal .wrap .box {
  position: relative;
  z-index: 1001;
  width: 40%;
  margin: 10% auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 10px rgb(0 0 0 / 20%);
  transition: all 0.3s ease;
}

.modal-box__header {
  padding: 10px 14px;
  border-bottom: 1px solid #e9e9e9;
}

.modal-box__footer {
  text-align: end;
}

.modal-box__footer button {
  min-width: 100px;
}

.modal-box__footer button:not(:last-child) {
  margin-right: 10px;
}
